﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EnterpriseManagement.Models.TeamMemberModel>" %>



<div id="releaseteammembertonewproject">
<br />
<h2 style ="margin-left:10px">新项目组</h2>
 <% using (Ajax.BeginForm("ReleaseTeammemberToNewProject", new AjaxOptions { UpdateTargetId = "releaseteammembertonewproject" }))
    {%>
<%: Html.ValidationSummary(true)%>
     <table   id="tablenoframe" style ="margin-left:10%">
            <tr>
            <td class="label"><%: Html.LabelFor(model => model.ProjectName)%></td>
            <td class="dropdownlist">
                <%: Html.DropDownList("ProjectName", (SelectList)ViewData["ProjectName"], "", new { style = "width:100px" })%>
                <%: Html.ValidationMessageFor(model => model.ProjectName)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.EmployeeId )%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.EmployeeId, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.EmployeeId)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.EmployeeName)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.EmployeeName, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.EmployeeName)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Position)%></td>
            <td class="editor-field">
                <%: Html.DropDownList("Position", (SelectList)ViewData["Position"], "", new { style = "width:100px" })%>
                <%: Html.ValidationMessageFor(model => model.Position)%>
            </td>
            </tr>

            <tr>
            <td class="label"><%: Html.LabelFor(model => model.DirectorId)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.DirectorId)%>
                <%: Html.ValidationMessageFor(model => model.DirectorId)%>
            </td>

            <td class="label"><%: Html.LabelFor(model => model.Director)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Director)%>
                <%: Html.ValidationMessageFor(model => model.Director)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.StartTime)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.StartTime)%>
                <%: Html.ValidationMessageFor(model => model.StartTime)%> 
            </td>

            <td class="editor-field" style="display:none"><%: Html.TextBoxFor (model=>model.oldProjectName) %></td>

            <td colspan ="2" align ="left"><input type="submit" value="更新"  style ="margin-left:20px;" /></td>
            </tr>
            </table>
<%} %>

</div>